Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Changing Conditions for nextjsProjectExists #188

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

DhairyaMajmudar
Copy link

Changed the conditions from checking if package.json exists or not to next.config.mjs exists in the command/inti/index.ts file

Closes #187

@DhairyaMajmudar
Copy link
Author

@nicoalbanese pls. have a look : )

Copy link
Owner

@nicoalbanese nicoalbanese left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey! Can you update this to look for any file that has next.config.*

This is because a next config could be .js
https://nextjs.org/docs/pages/api-reference/next-config-js

@DhairyaMajmudar
Copy link
Author

@nicoalbanese I have committed the suggested changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug: Edge Case - Next project not created and init command working.
2 participants